<html>
<head>
 
</head>
<body style="text-align=center;font-size:24px">
<div id="problemNum" style='background-color:#aaaaaa;width:400;text-align:left;'></div>
<div id="problemContent" style='background-color:#cccccc;width:400;text-align:left;'></div>
<div id="result" style='color:#ffff22;font-size:48;background-color:#8855ff;width:400;'></div>
 
<script language="javascript">
    //---------------------------------//
    // Project Euler 
    //  Problem 1
    //If we list all the natural numbers below 10 
    //that are multiples of 3 or 5, we get 3, 5, 6 and 9. 
    //The sum of these multiples is 23.
    //Find the sum of all the multiples of 3 or 5 below 1000.
    //
    // Author:thrombin
    //   Date:2015-12-06
    //---------------------------------//  
var N=1;
var problem="If we list all the natural numbers below 10 "
    +"that are multiples of 3 or 5, we get 3, 5, 6 and 9. "
    +"The sum of these multiples is 23."
    +"Find the sum of all the multiples of 3 or 5 below 1000.";
var i=0,sum=0;
for(i=3;i<1000;i++){
    if(i%5==0 || i%3==0){
        sum+=i;
    }
}
document.getElementById("problemNum").innerHTML="Project Euler-Problem "+N;
document.getElementById("problemContent").innerHTML=problem;
document.getElementById("result").innerHTML="Answer:"+sum;
 
</script>
</body>
</html>